package com.hht.mapper;

import com.hht.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;
import java.util.Map;


@Component
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<Map> selectKey();

    int batchInsert(List<Map> list);

    void updateKeyHash(@Param("keyword") String keyword, @Param("hashcode") int hashcode);

    void updatePubTime(@Param("aid") String id, @Param("dates") Date dates);
}